package city.spring.modules.material.service;

import city.spring.modules.material.entity.MaterialBreakageApprovalEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * Service：物资报损审核表
 *
 * @author 谢金婷
 * @date 2021-01-20 14:22:53
 */
public interface MaterialBreakageApprovalService extends IService<MaterialBreakageApprovalEntity> {
    String CACHE_NAME = "material_breakage_approval";

    /**
     * 业务处理：保存一个 <strong>物资报损审核表</strong>
     *
     * @param entity 物资报损审核表
     */
    void saveMaterialBreakageApproval(MaterialBreakageApprovalEntity entity);
    void addMaterialBreakageApproval(MaterialBreakageApprovalEntity entity);

    /**
     * 业务处理：修改一个 <strong>物资报损审核表</strong>
     *
     * @param entity 物资报损审核表
     */
    void updateMaterialBreakageApproval(MaterialBreakageApprovalEntity entity);

    /**
     * 业务处理：删除一个 <strong>物资报损审核表</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteMaterialBreakageApproval(String primaryKey);

    /**
     * 业务处理：删除多个 <strong>物资报损审核表</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteMaterialBreakageApproval(List<String> primaryKeys);
}